gridpack::random::Random Class Reference

#include <random.hpp>

List of all members.

Public Member Functions

 Random ()
 Random (int seed)
 ~Random (void)
void seed (int seed)
double drand (void)
double grand (void)

Constructor & Destructor Documentation

gridpack::random::Random::Random (  ) 

Default constructor

gridpack::random::Random::Random ( int  seed  ) 

Initialize random number generator with a seed

Parameters:
seed random number generator initialization
gridpack::random::Random::~Random ( void   ) 

Default destructor


Member Function Documentation

double gridpack::random::Random::drand ( void   ) 

Return a double precision random number in the range [0,1]

double gridpack::random::Random::grand ( void   ) 

Return a double precision random number from a gaussian distribution with unit variance

void gridpack::random::Random::seed ( int  seed  ) 

Reinitialize random number generator with a new seed

Parameters:
seed random number generator initialization

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Feb 2020 for GridPACK by  doxygen 1.6.1